<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考试批次：</label>
                            <div class="col-sm-8" id="ebatchDiv">
                                <!--<input id="ebatchId" name="ebatchId" placeholder="ebatchId" class="form-control"
                                       type="text">-->
                                <select id="ebatchId" name="ebatchId" class="form-control">
                                    <option value="">请选择考试批次</option>
                                    <option th:each="item : ${ebatch}"  th:value="${item.id}"  th:text="${item.name}"></option>
                                </select>

                            </div>
                        </div>
                       <div class="form-group">
                            <label class="col-sm-3 control-label">考室：</label>
                            <div class="col-sm-8" id="roomDiv">
                                <!--<input id="ebatchId" name="ebatchId" placeholder="ebatchId" class="form-control"
                                       type="text">-->
                            </div>
                        </div>
                                                       <div class="form-group">
                                                           <label class="col-sm-3 control-label">延时时长（单位：分钟）：</label>
                                                           <div class="col-sm-8">
                                                               <input id="addTime" name="addTime" placeholder="addTime" class="form-control"
                                                                      type="text">

                                                           </div>
                                                       </div>
                                                       <div class="form-group">
                                                           <label class="col-sm-3 control-label">延时原因：</label>
                                                           <div class="col-sm-8">
                                                               <input id="remark" name="remark" placeholder="remark" class="form-control" type="text">

                                                           </div>
                                                       </div>
                                                       <div class="form-group">
                                                           <div class="col-sm-8 col-sm-offset-3">
                                                               <button type="submit" class="btn btn-primary">提交</button>
                                                           </div>
                                                       </div>
                                                   </form>
                                               </div>
                                           </div>
                                       </div>
                                   </div>
                               </div>
                               <div th:include="include::footer"></div>
                               <script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
                               <script type="text/javascript" src="/js/webJs/jzweb/exceptionAddtime/addToRoom.js">
                               </script>
                               <script>

                                   $().ready(function() {
                                       select();
                                   });

                                   //分页下拉框
                                   function select() {
                                       $('#selectPage').selectPage({
                                           showField : 'ticketNumber',
                                           keyField : 'id',
                                           data :'/jzweb/exceptionAddtime/findStu',
                                           searchField:'ticketNumber',
                                           //格式化显示项目，提供源数据进行使用
                                           formatItem : function(data){
                                               return data.name + '(' + data.ticketNumber + ')';
                                           },
                                           eAjaxSuccess : function(d){
                                               var result;
                                               if(d) result = d.data;
                                               else result = undefined;
                                               return result;
                                           }
                                       });
                                   }

                               </script>

                               </body>
                               </html>
